package com.tarena.lbs.basic.web.mapper;

import com.tarena.lbs.pojo.basic.dos.UserDO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {
    void saveUser(UserDO userDO);

    @Select("select * from tarena_lbs_basic.lbs_user where phone=#{phone}")
    UserDO selectUserByPhone(String phone);

    @Select("select * from tarena_lbs_basic.lbs_user where id=#{userId}")
    UserDO selectUserById(Integer userId);

    @Update("update tarena_lbs_basic.lbs_user set status=#{status} where id=#{id}")
    void updateUserStatus(UserDO userDO);
}
